package org.xi.behavioral.state;

public class Main {
    public static void main(String[] args) {
        MusicPlayer player = new MusicPlayer();

        player.play(); // 输出: Music started playing.
        player.pause(); // 输出: Music paused.
        player.stop(); // 输出: Music stopped.
        player.play(); // 输出: Music started playing.
    }
}